using System;
namespace AppToolKit.Core.Context.Spring.AutoConstruction.Builder
{
	public class GenericeBusinessClientBuilder : ClientBuilderBase
	{
		private GenericeBusinessSupport support_ = new GenericeBusinessSupport();
		public override string GetInterfaceName(Type businessType)
		{
			Type entityType = this.support_.GetEntityType(businessType);
			return string.Format("AppToolKit.Business.IBusiness<{0}>,AppToolKit.Business", entityType.FullName);
		}
		public override bool IsSupport(Type type)
		{
			return this.support_.IsSupport(type);
		}
		protected override string GetBusinessName(Type businessType)
		{
			Type entityType = this.support_.GetEntityType(businessType);
			return entityType.FullName + "_business";
		}
	}
}
